package com.guchenbo.example.thread;

import com.guchenbo.example.thread.singleton.Singleton;

/**
 * @Author guchenbo
 * @Date 2019/7/5.
 */
public class UnsafeInstanceFactory {

    private static Singleton singleton;

    public static Singleton getSingleton(){
        if (singleton == null) {
            singleton = new Singleton();
        }
        return singleton;
    }
}
